package studio.raptor.dispatcher.server.entity;

import java.sql.Timestamp;

/**
 * @author jack
 * @since 1.0
 */
public class EventTrace {

  private Long traceId;

  private String objectKey;

  private String code;

  private Integer retryTimes;

  private Integer kindId;

  private Integer eventType;

  private String status;

  private Timestamp createDate;

  private Timestamp lastUpdateDate;

  private Integer respCode;

  private String respMsg;

  public Long getTraceId() {
    return traceId;
  }

  public void setTraceId(Long traceId) {
    this.traceId = traceId;
  }

  public void setRespCode(Integer respCode) {
    this.respCode = respCode;
  }

  public String getObjectKey() {
    return objectKey;
  }

  public void setObjectKey(String objectKey) {
    this.objectKey = objectKey;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public Integer getRetryTimes() {
    return retryTimes;
  }

  public void setRetryTimes(Integer retryTimes) {
    this.retryTimes = retryTimes;
  }

  public Integer getKindId() {
    return kindId;
  }

  public void setKindId(Integer kindId) {
    this.kindId = kindId;
  }

  public Integer getEventType() {
    return eventType;
  }

  public void setEventType(Integer eventType) {
    this.eventType = eventType;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public void setCreateDate(Timestamp createDate) {
    this.createDate = createDate;
  }

  public Timestamp getCreateDate() {
    return createDate;
  }

  public Timestamp getLastUpdateDate() {
    return lastUpdateDate;
  }

  public void setLastUpdateDate(Timestamp lastUpdateDate) {
    this.lastUpdateDate = lastUpdateDate;
  }

  public int getRespCode() {
    return respCode;
  }

  public void setRespCode(int respCode) {
    this.respCode = respCode;
  }

  public String getRespMsg() {
    return respMsg;
  }

  public void setRespMsg(String respMsg) {
    this.respMsg = respMsg;
  }

  @Override
  public String toString() {
    return "EventTrace{" +
        "traceId=" + traceId +
        ", objectKey='" + objectKey + '\'' +
        ", code='" + code + '\'' +
        ", retryTimes=" + retryTimes +
        ", kindId=" + kindId +
        ", eventType=" + eventType +
        ", status='" + status + '\'' +
        ", createDate=" + createDate +
        ", lastUpdateDate=" + lastUpdateDate +
        ", respCode=" + respCode +
        ", respMsg='" + respMsg + '\'' +
        '}';
  }
}
